<template>
	<view class="cart_box">
		<view class="title_box">
			{{title}}
		</view>
		<view class="bottom">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			title:{
				type: String,
				default: '',
				required: true
			}
		}
	}
</script>

<style lang="scss">
	.cart_box{
		margin-top: 20rpx;
		width: 702rpx;
		background: #ffffff;
		border-radius: 16rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 24rpx;
		.title_box{
			width: 100%;
			height: 108rpx;
			font-size: 32rpx;
			font-weight: 700;
			text-align: center;
			color: #333333;
			display: flex;
			align-items: center;
			justify-content: center;
			border-bottom: 1rpx solid #e9e9e9;
		}
		.bottom{
			width: 100%;
			padding-top: 24rpx;
		}
	}
</style>